// 用户相关的接口
import axios from "../tool/axios";
/**
 * 
 * @param {username,password} obj 
 * @returns  promise
 */
export const login=( obj )=>axios.post("login",obj)

export const menus =() => axios.get("menus")

export const getusers =(obj)=>axios.get("users",{
    params:obj
})

export const addusers = (obj) => axios.post("users", obj)


export const delusers = (id) => axios.delete(`users/${id}`)